﻿namespace SERFLITEMAX20.WinUI.Controls
{
    using System;
    using System.Globalization;

    public class ListViewInt64Sort : ListViewTextSort
    {
        public ListViewInt64Sort(int sortColumn, bool ascending) : base(sortColumn, ascending)
        {
        }

        protected override int OnCompare(string lhs, string rhs)
        {
            return (int.Parse(lhs, NumberStyles.Number) - int.Parse(rhs, NumberStyles.Number));
        }
    }
}

